﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace RadinfFakturer
{
    class Globals
    {
        public struct XML_FILES
        {
            public static string RADINF_FAKTURER_DATA = Application.StartupPath + "..\\..\\..\\XML_files\\RadinfFakturerData.xml";
            public static string RADINF_FAKTURER_DATA_DIR = Application.StartupPath + "..\\..\\..\\XML_files";
        }

        public struct ERRORS
        {
            public static string REQUIRED = "To pole jest wymagane";
            public static string CONTRACTOR = "Wybierz kontrahenta";
            public static string ITEM_REQUIRED = "Cena brutto bądź ilość nie została wypełniona";
        }

        public static enum DOC_TYPE { VAT, RP };

        public static List<string> MEASURE = new List<string>(new string[] { "szt", "kpl", "op", "mb", "kg" });
        public static List<DocumentType> DOC_TYPES = new List<DocumentType>(new DocumentType[] { new DocumentType("Faktura VAT", DOC_TYPE.VAT), new DocumentType("Rach. uproszczony", DOC_TYPE.RP) });
        public static List<Vat> VAT = new List<Vat>(new Vat[] { new Vat("23%", 0.23), new Vat("8%", 0.08), new Vat("5%", 0.05) });
    }
}
